OBJECT=../../.objs/release/visit.o
LIB=../../lib/release/libvisit.a
DEP=../../include/visit.h
MODE ?=release
ASPECT=../../3rd/ag++
FLAG=

ifeq ($(MODE),debug)
FLAG =-g
OBJECT=../../.objs/debug/visit.o
LIB=../../lib/debug/libvisual.a
endif

$(LIB): $(OBJECT)
	ar rcs $(LIB) $(OBJECT)

$(OBJECT):visit.cpp DotAspect.ah $(DEP)
	$(ASPECT) -c $(FLAG) visit.cpp -o $(OBJECT) -p. -a DotAspect.ah  -v1 -I ../../include/


clean:
	rm -f *.config
	rm -f $(OBJECT) $(LIB)

